package com.cqhilink.iot.jobstandardmanagement.facade.service.orgarea;

import com.alibaba.fastjson.JSONObject;
import com.cqhilink.iot.jobstandardmanagement.facade.model.BootstrapSearchBean;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Employee;
import com.cqhilink.iot.jobstandardmanagement.facade.model.OrgArea;
import com.cqhilink.iot.jobstandardmanagement.facade.model.OrgAreaVo;

import java.util.List;
import java.util.Map;

/**
 * Created by zmling on 2016/12/2.
 * 区域信息
 */
public interface JsmOrgAreaService {

    /**
     * 通过I的c查询区域信息
     *
     * @param orgId
     * @return
     * @throws Exception
     */
    List<OrgArea> findOrgAreaOrgId(String orgId) throws Exception;

    /**
     * 新增区域信息
     *
     * @param orgArea
     * @throws Exception
     */
    void orgAreaAdd(OrgArea orgArea, Employee employee) throws Exception;

    /**
     * 区域信息查询分页
     *
     * @param bootstrapSearchBean
     * @return
     * @throws Exception
     */
    JSONObject findOrgAreaByOrgId(BootstrapSearchBean bootstrapSearchBean) throws Exception;

    /**
     * 删除区域信息
     *
     * @param orgId
     * @return
     * @throws Exception
     */
    int deleteOrgArea(Map orgId) throws Exception;

    /**
     * 通过ID查询
     *
     * @param areaId
     * @return
     * @throws Exception
     */
    OrgAreaVo loadOrgAreaView(String areaId) throws Exception;

    /**
     * 修改区域信息
     *
     * @param orgArea
     * @throws Exception
     */
    void orgAreaUpdate(OrgArea orgArea, Employee employee) throws Exception;

    /**
     * 分页查询返回list
     *
     * @param bootstrapSearchBean
     * @return
     * @throws Exception
     */
    List<OrgAreaVo> findOrgAreaVo(BootstrapSearchBean bootstrapSearchBean) throws Exception;
}
